package com.ftf.tp.blog.infrastructure.mapper.pos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文章评论表
 *
 * @author tanghao
 * @date 2022/6/24
 */
@ApiModel(value = "文章评论表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "article_comment")
public class ArticleCommentPO{
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 文章id
     */
    @TableField(value = "article_id")
    @ApiModelProperty(value = "文章id")
    private Long articleId;

    /**
     * 文章作者id
     */
    @TableField(value = "article_user_id")
    @ApiModelProperty(value = "文章作者id")
    private Long articleUserId;

    /**
     * 评论用户id
     */
    @TableField(value = "comment_user_id")
    @ApiModelProperty(value = "评论用户id")
    private Long commentUserId;

    /**
     * 评论用户名称
     */
    @TableField(value = "comment_user_name")
    @ApiModelProperty(value = "评论用户名称")
    private String commentUserName;

    /**
     * 父评论id (0为一级评论);(0为一级评论)
     */
    @TableField(value = "comment_parent_id")
    @ApiModelProperty(value = "父评论id (0为一级评论);(0为一级评论)")
    private Long commentParentId;

    /**
     * 评论点赞数
     */
    @TableField(value = "comment_support_number")
    @ApiModelProperty(value = "评论点赞数")
    private Long commentSupportNumber;

    /**
     * 评论内容
     */
    @TableField(value = "comment_content")
    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    /**
     * 逻辑删除
     */
    @TableField(value = "delete_status")
    @ApiModelProperty(value = "逻辑删除")
    private Integer deleteStatus;

    /**
     * 乐观锁
     */
    @TableField(value = "revision")
    @ApiModelProperty(value = "乐观锁")
    private Integer revision;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;


}